package org.will.spi.dubbo;

import com.alibaba.dubbo.common.URL;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class LocalHelloServiceImpl implements HelloService {

    private Protocol local;

    public LocalHelloServiceImpl() {
        log.info("local初始化");
    }

    public Protocol getLocal() {
        return local;
    }

    public void setLocal(Protocol local) {
        this.local = local;
    }

    @Override
    public String sayHello(URL url) {
        return "local hello, " + local.getName(url);
    }
}
